using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using OVS.BusinessObjects;
using OVS.DAL;

namespace OVS.BLL
{
	public partial class Image_DetailsBLL
	{
		private Image_DetailsDAO _Image_DetailsDAO;

		public Image_DetailsDAO Image_DetailsDAO
		{
			get { return _Image_DetailsDAO; }
			set { _Image_DetailsDAO = value; }
		}

		public Image_DetailsBLL()
		{
			Image_DetailsDAO = new Image_DetailsDAO();
		}
		public List<Image_Details> GetImage_Detailss()
		{
			try
			{
				return Image_DetailsDAO.GetImage_Detailss();
			}
			catch(Exception ex)
			{
				throw ex;
			}
		}
		public Image_Details GetImage_Details(int imde_id)
		{
			try
			{
				return Image_DetailsDAO.GetImage_Details(imde_id);
			}
			catch(Exception ex)
			{
				throw ex;
			}
		}
		public int AddImage_Details(Image_Details oImage_Details)
		{
			try
			{
				return Image_DetailsDAO.AddImage_Details(oImage_Details);
			}
			catch (Exception ex)
			{
				throw ex;
			}
		}
		public int UpdateImage_Details(Image_Details oImage_Details)
		{
			try
			{
				return Image_DetailsDAO.UpdateImage_Details(oImage_Details);
			}
			catch (Exception ex)
			{
				throw ex;
			}
		}
		public int RemoveImage_Details(Image_Details oImage_Details)
		{
			try
			{
				return Image_DetailsDAO.RemoveImage_Details(oImage_Details);
			}
			catch (Exception ex)
			{
				throw ex;
			}
		}
		public int RemoveImage_Details(int imde_id)
		{
			try
			{
				return Image_DetailsDAO.RemoveImage_Details(imde_id);
			}
			catch (Exception ex)
			{
				throw ex;
			}
		}
		public List<Image_Details> GetImage_DetailssOfImage_Haar(int imha_id)
		{
			try
			{
				return Image_DetailsDAO.GetImage_DetailssOfImage_Haar(imha_id);
			}
			catch (Exception ex)
			{
				throw ex;
			}
		}
		public Image_Haar GetImage_HaarOfImage_Details(int imha_id)
		{
			try
			{
				return Image_DetailsDAO.GetImage_HaarOfImage_Details(imha_id);
			}
			catch (Exception ex)
			{
				throw ex;
			}
		}
		public Image_Haar GetImage_HaarOfImage_Details(Image_Details oImage_Details)
		{
			try
			{
				return Image_DetailsDAO.GetImage_HaarOfImage_Details(oImage_Details.imha_id);
			}
			catch (Exception ex)
			{
				throw ex;
			}
		}
		public List<Image_Details> DeserializeImage_Detailss(string Path)
		{
			try
			{
				return GenericXmlSerializer<List<Image_Details>>.Deserialize(Path);
			}
			catch (Exception ex)
			{
				throw ex;
			}
		}
		public void SerializeImage_Detailss(string Path, List<Image_Details> Image_Detailss)
		{
			try
			{
				GenericXmlSerializer<List<Image_Details>>.Serialize(Image_Detailss, Path);
			}
			catch (Exception ex)
			{
				throw ex;
			}
		}
	}
}
